<!doctype html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>主页</title>
</head>
<body>
<div>
    url : <br/>
    <input type="text" id="url">
    <br/>
    response content : <br/>
    <textarea style="width: 800px;height: 500px;" id="responseContent"></textarea>
    <br/>
    <button onclick="add()">submit</button>
</div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.0.0/jquery.min.js"></script>
<script>
    function add() {
        $.ajax({
            url:"/s?url="+$("#url").val(),
            method:"post",
            async: false,
            data: $('#responseContent').val(),
            success:function (data) {
                alert(data);
            }
        })
    }
</script>
</html>